package com.monkey.demolist;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.monkey.demolist.bitmap.ColorMatrixActivity;
import com.monkey.demolist.bluetooth.BlueToothActivity;
import com.monkey.demolist.greendao.base.BaseDaoActivity;
import com.monkey.demolist.preferenceActivity.SettingActivity;
import com.monkey.demolist.tree.TreeViewActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void click(View view) {
        switch (view.getId()){
            case R.id.bitmap:
                Intent bitmap = new Intent(MainActivity.this, ColorMatrixActivity.class);
                startActivity(bitmap);
                break;
            case R.id.tree:
                Intent tree = new Intent(MainActivity.this, TreeViewActivity.class);
                startActivity(tree);
                break;
            case R.id.bluetooth:
                Intent bluetooth = new Intent(MainActivity.this, BlueToothActivity.class);
                startActivity(bluetooth);
                break;
            case R.id.greendao:
                Intent dao = new Intent(MainActivity.this, BaseDaoActivity.class);
                startActivity(dao);
                break;
            case R.id.setting:
                Intent setting = new Intent(MainActivity.this, SettingActivity.class);
                startActivity(setting);
                break;
        }
    }
}
